package com.dev.security.setting.service;

import java.util.List;
import java.util.Map;

import com.dev.security.setting.beans.UserSetting;

/**
 * @author 潜行的青衣
 * @see
 */
public interface IUserSettingService {

	/**
	 * 保存设置
	 * @author 潜行的青衣
	 * @version
	 * @param setting
	 */
	public void save(UserSetting setting);
	
	/**
	 * 获得设置
	 * @author 潜行的青衣
	 * @version
	 * @param account_id
	 * @param field_name
	 */
	public UserSetting findUserSetting(String account_id, String field_name);
	
	/**
	 * 获得设置列表
	 * @author 潜行的青衣
	 * @version
	 * @param account_id
	 * @return
	 */
	public List<UserSetting> findUserSettings(String account_id);
	
	/**
	 * 获得设置Map
	 * @author 潜行的青衣
	 * @version
	 * @param account_id
	 * @return
	 */
	public Map<String, String> findUserSettingMap(String account_id);
	
	/**
	 * 删除值
	 * @author 潜行的青衣
	 * @version
	 * @param account_id
	 * @param field_name
	 */
	public void remove(String account_id, String field_name);
	
}
